import { post } from "../../../../utils/fetch";

// 流程详情, modelCode兼容其他系统
export const getModelDetail = ({ modelId, modelCode }) => {
    return post(`/flow-platform/model/detail`, { modelId, modelCode });
  };


// 流程模型保存
export const saveModel = (data) => {
    return post(`/flow-platform/model/save`, data, { messageType: "close" });
  };

// 流程事件在线测试
export const testEvent = (data) => {
    return post(`/flow-platform/model/testEvent`, data, { messageType: "close" });
  };

// 获取流程列表数据
export const getListData = (params) => {
  return post('/flow-platform/model/list', params);
}

// 获取流程列表数据
export const getEventsList = (params) => {
  return post('/flow-platform/model/modelEvents', params);
}

// 更新模型事件
export const setEventsList = () => {
  return post('/flow-platform/model/modelEventsToTemp');
}
